package tree;

import lombok.Data;

/**
 * @author： pang-yun
 * @date： 2021-12-07 15:38
 * 功能目的 ：用于
 */
@Data
public class Node {
    private int id;
    private String name;

    private int leftType;
    private Node leftNode;

    private int rightType;
    private Node rightNode;


    public Node(int id, String name) {
        this.id = id;
        this.name = name;
    }

    @Override
    public String toString() {
        return "Node{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", leftType=" + leftType +
                ", rightType=" + rightType +
                '}';
    }
}
